package cn.com.shopec.erp.product.dao;

import java.util.List;
import java.util.Map;

import cn.com.shopec.erp.common.orm.IHibernateEntityDao;
import cn.com.shopec.erp.common.page.PageFinder;
import cn.com.shopec.erp.common.page.PageQuery;
import cn.com.shopec.erp.product.entity.ProductStock;
import cn.com.shopec.erp.product.entity.ProductStockExt;
import cn.com.shopec.erp.product.vo.ProductStockVo;

public interface IProductStockDao extends IHibernateEntityDao<ProductStock> {

	public PageFinder<ProductStockExt> productStockPaged(ProductStockVo productStockVo, PageQuery pageQuery);
	
	public PageFinder<ProductStockExt> productStockDefect(ProductStockVo productStockVo, PageQuery pageQuery);
	
	ProductStock findUniqueProduct(ProductStock productStock);

	public List<Map<String, Object>> productStockList(ProductStockVo productStockVo);

	public Long getProductStockSum(ProductStockVo productStockVo);

	public List<ProductStock> getProductStockList(ProductStockVo productStockVo);

	public boolean changeQuantity(String id, Long qualifiedQuantity,long preOccupyQuantity, long defectiveQuantity);

	public boolean setVipOccupyQuantity(String id, Long vipOccupyQuantity);
}
